package com.pine.dcts.common;

import lombok.Getter;

/**
 * @author xiaoyuan
 * @create 2021/1/13
 **/
@Getter
public enum TaskStatusType {
     //不会再运行
    STOP(-1,"已停止"),
    //创建任务的初始状态
    NOT_START(0,"未启动"),
    //点击运行后的状态
    PREPARE(1,"就绪中"),
    //正式开始运行的状态
    RUNNING(2,"运行中"),
    //运行中出现异常
    ERROR(3, "异常"),
    //暂停运行
    SUSPEND(4,"暂停"),
    //任务完成
    FINISH(5,"完成");


    private Integer value;
    private String name;

     TaskStatusType(Integer value,String name){
       this.value = value;
       this.name = name;
    }
}
